package STUDENT.TranNamAnh.OOPs.baitapmang.bt1;

public class Models {
	

	public int trenTrungBinh(int[] diem){
		int kq= 0;
		for(int i = 0; i < diem.length; i++ ){
			if(diem[i] >= 5 && diem[i] >0)
				kq++;
		}
			
		
		return kq;
	}
	
	public int duoiTrungBinh(int[] diem){
		int kq1= 0;
		for(int i = 0; i < diem.length; i++ ){
			if(diem[i] < 5 && diem[i] >0)
				kq1++;
		}
			
		
		return kq1;
	}

}
